import QtQuick 2.4
import "Temp.js" as PokeClass

Rectangle {

    width: 800
    height: 600


    Rectangle {
        anchors.fill: parent
        color: "blue"
        MouseArea {
            anchors.fill: parent
            onClicked: console.debug("1")
        }
    }

    Player {
        x:10
        y:10
        source: "erzhang.png"
        flags : PokeClass.Flag_Show | PokeClass.Flag_Enable
        Component.onCompleted: setBlood(2,3)
        onClicked: flags ^= PokeClass.Flag_Clicked
    }

    Player {
        x:10
        y:180
        source: "erzhang.png"
        flags : PokeClass.Flag_Show
        Component.onCompleted: setBlood(2,6)
        onClicked: flags ^= PokeClass.Flag_Clicked
    }

    Player {
        x:150
        y:10
        source: "erzhang.png"
        flags : PokeClass.Flag_Show | PokeClass.Flag_Enable
        Component.onCompleted: setBlood(6,8)
        onClicked: flags ^= PokeClass.Flag_Clicked
    }
}
